package com.ynt.hangqing.controller;

import com.ynt.hangqing.service.ShaTangJuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class STJController {


    @Autowired
    ShaTangJuService shaTangJuService;

    /**
     * 抓取所有砂糖橘价格数据
     */
    @GetMapping("/stj")
    public String stj() {
        shaTangJuService.fetchSTJInfo();
        return "抓取完毕";
    }

    /**
     * 抓取广西砂糖橘数据∂
     */
    @GetMapping("/gxstj")
    public String gxSTJ() {
        shaTangJuService.fetchGxSTJ();
        return "抓取完毕";
    }

}
